package com.hz.airline.dao;

import com.hz.airline.entity.Passenger;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by kevin on 2020/2/2 17:06
 */
public interface PassengerDao extends CrudRepository<Passenger, Integer> {

    List<Passenger> findAllByUserid(String userid);

    Passenger findByPassengerid(int passengerid);

    Passenger findByUseridAndMobileAndIdnumber(String userid, String mobile, String idnumber);

    Passenger findByUseridAndPassengerid(String userid, int passengerid);
}
